﻿using strange.extensions.dispatcher.eventdispatcher.api;
using strange.extensions.mediation.impl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NormalBattleIoc
{
    public enum BattleUIEvent
    {
         OPEN_Person_OperationPanel,
        OPEN_Tank_OperationPanel,


        Close_All_Panel,
        ShowWinPanel,
        ShowGameOverPanel,
        UpdatePlayerHp
    }

    public class TurnBattleEventView : View
    {
        [Inject]
        public IEventDispatcher dispatcher { get; set; }

        public void OpenPerson_OperationPanel()
        {
            dispatcher.Dispatch(BattleUIEvent.OPEN_Person_OperationPanel);
        }

        public void OpenTank_OperationPanel()
        {
            dispatcher.Dispatch(BattleUIEvent.OPEN_Tank_OperationPanel);
        }


        public void CloseAll_Panel()
        {
            dispatcher.Dispatch(BattleUIEvent.Close_All_Panel);
        }


        public void OpenWinPanel()
        {
            dispatcher.Dispatch(BattleUIEvent.ShowWinPanel);
        }

        public void UpdatePlayerHp()
        {
            dispatcher.Dispatch(BattleUIEvent.UpdatePlayerHp);
        }


    }
}


